const mongoose = require('mongoose');
const Schema = mongoose.Schema;

// 产品表
const ProductType = {
  name: String, //  名称
  type: String, //  类型
  content: String, //  内容
  img: String, //  图片
  desc: String, //  描述
  createTime: { type: Date, default: Date.now },
  updateTime: { type: Date, default: Date.now },
};
const ProductModel = mongoose.model('product', new Schema(ProductType));

module.exports = ProductModel;
